package gui;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;
import java.awt.GridBagLayout;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Rectangle;
import java.awt.Font;
import java.sql.SQLException;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class fileGUI extends JPanel {
	TeacherMainMenuGUI tmmc;
	public Button button_2;
	public Button button;
	public Button button_1;
	
	//filecode fc;
	public fileGUI() {
		super();
		initialize();
	}
	private void initialize() {
		this.setSize(600,600);
		SpringLayout springLayout = new SpringLayout();
		setLayout(springLayout);
		
		Label label = new Label("Select the option that you interested in");
		springLayout.putConstraint(SpringLayout.NORTH, label, 38, SpringLayout.NORTH, this);
		springLayout.putConstraint(SpringLayout.WEST, label, 57, SpringLayout.WEST, this);
		add(label);
		
		button = new Button("Download assignments");
		
		springLayout.putConstraint(SpringLayout.WEST, button, 218, SpringLayout.WEST, this);
		springLayout.putConstraint(SpringLayout.SOUTH, button, -465, SpringLayout.SOUTH, this);
		springLayout.putConstraint(SpringLayout.EAST, button, -141, SpringLayout.EAST, this);
		add(button);
		
		button_1 = new Button("View students grade for this assignment");
		
		springLayout.putConstraint(SpringLayout.NORTH, button_1, 24, SpringLayout.SOUTH, button);
		springLayout.putConstraint(SpringLayout.EAST, button_1, 0, SpringLayout.EAST, button);
		add(button_1);
		
		button_2 = new Button("Back to the list of assignments");
		springLayout.putConstraint(SpringLayout.NORTH, button_2, 71, SpringLayout.SOUTH, button_1);
		springLayout.putConstraint(SpringLayout.WEST, button_2, 73, SpringLayout.WEST, this);
		add(button_2);
		
	}
}
